#!/bin/bash
# turn on bash's job control
set -m
set -x

chmod -R 777 /var/www/html/
cd /var/www/html/
rm -rf ./data/runtime/**
rm -rf ./data/Runtime/**
# Start the primary process and put it in the background
nginx &

# Start the helper process
php-fpm

# the my_helper_process might need to know how to wait on the
# primary process to start before it does its work and returns


# now we bring the primary process back into the foreground
# and leave it there
fg %1